package cz.cvut.fit.web.nakupniSeznam.ws.conv;

import java.net.URI;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.apache.http.MethodNotSupportedException;

@XmlRootElement(name = "error")
@XmlType(propOrder = {"msg"})
public class ErrorConverter extends AbstractConverter {
	

	private String msg;

    public ErrorConverter(String msg) {
        this.msg = msg;
    }

    public ErrorConverter() {
    }

    @XmlElement
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

	@Override
	protected URI resolveURI(URI uri) throws MethodNotSupportedException {
		throw new MethodNotSupportedException("Not finished yet");
	}

}
